package com.bwie.feign;

import com.bwie.pojo.User;
import com.bwie.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "system/user",fallback = UserFeignFallBack.class)
public interface UserFeign {
    @GetMapping("/findByUsername{username}")
    public Result<User> findByUsername(@PathVariable("username") String username);
}
